home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / opcodes / configure < prev    next >
Encoding:
Text File  |  1996-07-04  |  47.4 KB  |  1,550 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-targets        alternative target configurations"
  16. ac_help="$ac_help
  17.   --enable-shared         build shared opcodes library"
  18. ac_help="$ac_help
  19.   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library"
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58.  
  59. ac_prev=
  60. for ac_option
  61. do
  62.  
  63.   # If the previous option needs an argument, assign it.
  64.   if test -n "$ac_prev"; then
  65.     eval "$ac_prev=\$ac_option"
  66.     ac_prev=
  67.     continue
  68.   fi
  69.  
  70.   case "$ac_option" in
  71.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  72.   *) ac_optarg= ;;
  73.   esac
  74.  
  75.   # Accept the important Cygnus configure options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.  
  79.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  80.     ac_prev=bindir ;;
  81.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  82.     bindir="$ac_optarg" ;;
  83.  
  84.   -build | --build | --buil | --bui | --bu)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  90.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  91.     ac_prev=cache_file ;;
  92.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  93.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  94.     cache_file="$ac_optarg" ;;
  95.  
  96.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  97.     ac_prev=datadir ;;
  98.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  99.   | --da=*)
  100.     datadir="$ac_optarg" ;;
  101.  
  102.   -disable-* | --disable-*)
  103.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  104.     # Reject names that are not valid shell variable names.
  105.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  106.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  107.     fi
  108.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  109.     eval "enable_${ac_feature}=no" ;;
  110.  
  111.   -enable-* | --enable-*)
  112.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  113.     # Reject names that are not valid shell variable names.
  114.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  115.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  116.     fi
  117.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  118.     case "$ac_option" in
  119.       *=*) ;;
  120.       *) ac_optarg=yes ;;
  121.     esac
  122.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  123.  
  124.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  125.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  126.   | --exec | --exe | --ex)
  127.     ac_prev=exec_prefix ;;
  128.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  129.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  130.   | --exec=* | --exe=* | --ex=*)
  131.     exec_prefix="$ac_optarg" ;;
  132.  
  133.   -gas | --gas | --ga | --g)
  134.     # Obsolete; use --with-gas.
  135.     with_gas=yes ;;
  136.  
  137.   -help | --help | --hel | --he)
  138.     # Omit some internal or obsolete options to make the list less imposing.
  139.     # This message is too long to be a string in the A/UX 3.1 sh.
  140.     cat << EOF
  141. Usage: configure [options] [host]
  142. Options: [defaults in brackets after descriptions]
  143. Configuration:
  144.   --cache-file=FILE       cache test results in FILE
  145.   --help                  print this message
  146.   --no-create             do not create output files
  147.   --quiet, --silent       do not print \`checking...' messages
  148.   --version               print the version of autoconf that created configure
  149. Directory and file names:
  150.   --prefix=PREFIX         install architecture-independent files in PREFIX
  151.                           [$ac_default_prefix]
  152.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  153.                           [same as prefix]
  154.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  155.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  156.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  157.   --datadir=DIR           read-only architecture-independent data in DIR
  158.                           [PREFIX/share]
  159.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  160.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  161.                           [PREFIX/com]
  162.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  163.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  164.   --includedir=DIR        C header files in DIR [PREFIX/include]
  165.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  166.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  167.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  168.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  169.   --program-prefix=PREFIX prepend PREFIX to installed program names
  170.   --program-suffix=SUFFIX append SUFFIX to installed program names
  171.   --program-transform-name=PROGRAM
  172.                           run sed PROGRAM on installed program names
  173. EOF
  174.     cat << EOF
  175. Host type:
  176.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  177.   --host=HOST             configure for HOST [guessed]
  178.   --target=TARGET         configure for TARGET [TARGET=HOST]
  179. Features and packages:
  180.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  181.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  182.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  183.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  184.   --x-includes=DIR        X include files are in DIR
  185.   --x-libraries=DIR       X library files are in DIR
  186. EOF
  187.     if test -n "$ac_help"; then
  188.       echo "--enable and --with options recognized:$ac_help"
  189.     fi
  190.     exit 0 ;;
  191.  
  192.   -host | --host | --hos | --ho)
  193.     ac_prev=host ;;
  194.   -host=* | --host=* | --hos=* | --ho=*)
  195.     host="$ac_optarg" ;;
  196.  
  197.   -includedir | --includedir | --includedi | --included | --include \
  198.   | --includ | --inclu | --incl | --inc)
  199.     ac_prev=includedir ;;
  200.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  202.     includedir="$ac_optarg" ;;
  203.  
  204.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  205.     ac_prev=infodir ;;
  206.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  207.     infodir="$ac_optarg" ;;
  208.  
  209.   -libdir | --libdir | --libdi | --libd)
  210.     ac_prev=libdir ;;
  211.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  212.     libdir="$ac_optarg" ;;
  213.  
  214.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  215.   | --libexe | --libex | --libe)
  216.     ac_prev=libexecdir ;;
  217.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  218.   | --libexe=* | --libex=* | --libe=*)
  219.     libexecdir="$ac_optarg" ;;
  220.  
  221.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  222.   | --localstate | --localstat | --localsta | --localst \
  223.   | --locals | --local | --loca | --loc | --lo)
  224.     ac_prev=localstatedir ;;
  225.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  226.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  227.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  228.     localstatedir="$ac_optarg" ;;
  229.  
  230.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  231.     ac_prev=mandir ;;
  232.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  233.     mandir="$ac_optarg" ;;
  234.  
  235.   -nfp | --nfp | --nf)
  236.     # Obsolete; use --without-fp.
  237.     with_fp=no ;;
  238.  
  239.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  240.   | --no-cr | --no-c)
  241.     no_create=yes ;;
  242.  
  243.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  244.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  245.     no_recursion=yes ;;
  246.  
  247.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  248.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  249.   | --oldin | --oldi | --old | --ol | --o)
  250.     ac_prev=oldincludedir ;;
  251.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  252.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  253.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  254.     oldincludedir="$ac_optarg" ;;
  255.  
  256.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  257.     ac_prev=prefix ;;
  258.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  259.     prefix="$ac_optarg" ;;
  260.  
  261.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  262.   | --program-pre | --program-pr | --program-p)
  263.     ac_prev=program_prefix ;;
  264.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  265.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  266.     program_prefix="$ac_optarg" ;;
  267.  
  268.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  269.   | --program-suf | --program-su | --program-s)
  270.     ac_prev=program_suffix ;;
  271.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  272.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  273.     program_suffix="$ac_optarg" ;;
  274.  
  275.   -program-transform-name | --program-transform-name \
  276.   | --program-transform-nam | --program-transform-na \
  277.   | --program-transform-n | --program-transform- \
  278.   | --program-transform | --program-transfor \
  279.   | --program-transfo | --program-transf \
  280.   | --program-trans | --program-tran \
  281.   | --progr-tra | --program-tr | --program-t)
  282.     ac_prev=program_transform_name ;;
  283.   -program-transform-name=* | --program-transform-name=* \
  284.   | --program-transform-nam=* | --program-transform-na=* \
  285.   | --program-transform-n=* | --program-transform-=* \
  286.   | --program-transform=* | --program-transfor=* \
  287.   | --program-transfo=* | --program-transf=* \
  288.   | --program-trans=* | --program-tran=* \
  289.   | --progr-tra=* | --program-tr=* | --program-t=*)
  290.     program_transform_name="$ac_optarg" ;;
  291.  
  292.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  293.   | -silent | --silent | --silen | --sile | --sil)
  294.     silent=yes ;;
  295.  
  296.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  297.     ac_prev=sbindir ;;
  298.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  299.   | --sbi=* | --sb=*)
  300.     sbindir="$ac_optarg" ;;
  301.  
  302.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  303.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  304.   | --sharedst | --shareds | --shared | --share | --shar \
  305.   | --sha | --sh)
  306.     ac_prev=sharedstatedir ;;
  307.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  308.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  309.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  310.   | --sha=* | --sh=*)
  311.     sharedstatedir="$ac_optarg" ;;
  312.  
  313.   -site | --site | --sit)
  314.     ac_prev=site ;;
  315.   -site=* | --site=* | --sit=*)
  316.     site="$ac_optarg" ;;
  317.  
  318.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  319.     ac_prev=srcdir ;;
  320.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  321.     srcdir="$ac_optarg" ;;
  322.  
  323.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  324.   | --syscon | --sysco | --sysc | --sys | --sy)
  325.     ac_prev=sysconfdir ;;
  326.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  327.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  328.     sysconfdir="$ac_optarg" ;;
  329.  
  330.   -target | --target | --targe | --targ | --tar | --ta | --t)
  331.     ac_prev=target ;;
  332.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  333.     target="$ac_optarg" ;;
  334.  
  335.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  336.     verbose=yes ;;
  337.  
  338.   -version | --version | --versio | --versi | --vers)
  339.     echo "configure generated by autoconf version 2.10"
  340.     exit 0 ;;
  341.  
  342.   -with-* | --with-*)
  343.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  344.     # Reject names that are not valid shell variable names.
  345.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  346.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  347.     fi
  348.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  349.     case "$ac_option" in
  350.       *=*) ;;
  351.       *) ac_optarg=yes ;;
  352.     esac
  353.     eval "with_${ac_package}='$ac_optarg'" ;;
  354.  
  355.   -without-* | --without-*)
  356.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  357.     # Reject names that are not valid shell variable names.
  358.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  359.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  360.     fi
  361.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  362.     eval "with_${ac_package}=no" ;;
  363.  
  364.   --x)
  365.     # Obsolete; use --with-x.
  366.     with_x=yes ;;
  367.  
  368.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  369.   | --x-incl | --x-inc | --x-in | --x-i)
  370.     ac_prev=x_includes ;;
  371.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  372.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  373.     x_includes="$ac_optarg" ;;
  374.  
  375.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  376.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  377.     ac_prev=x_libraries ;;
  378.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  379.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  380.     x_libraries="$ac_optarg" ;;
  381.  
  382.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  383.     ;;
  384.  
  385.   *)
  386.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  387.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  388.     fi
  389.     if test "x$nonopt" != xNONE; then
  390.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  391.     fi
  392.     nonopt="$ac_option"
  393.     ;;
  394.  
  395.   esac
  396. done
  397.  
  398. if test -n "$ac_prev"; then
  399.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  400. fi
  401.  
  402. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  403.  
  404. # File descriptor usage:
  405. # 0 standard input
  406. # 1 file creation
  407. # 2 errors and warnings
  408. # 3 some systems may open it to /dev/tty
  409. # 4 used on the Kubota Titan
  410. # 6 checking for... messages and results
  411. # 5 compiler messages saved in config.log
  412. if test "$silent" = yes; then
  413.   exec 6>/dev/null
  414. else
  415.   exec 6>&1
  416. fi
  417. exec 5>./config.log
  418.  
  419. echo "\
  420. This file contains any messages produced by compilers while
  421. running configure, to aid debugging if configure makes a mistake.
  422. " 1>&5
  423.  
  424. # Strip out --no-create and --no-recursion so they do not pile up.
  425. # Also quote any args containing shell metacharacters.
  426. ac_configure_args=
  427. for ac_arg
  428. do
  429.   case "$ac_arg" in
  430.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  431.   | --no-cr | --no-c) ;;
  432.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  433.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  434.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  435.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  436.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  437.   esac
  438. done
  439.  
  440. # NLS nuisances.
  441. # Only set LANG and LC_ALL to C if already set.
  442. # These must not be set unconditionally because not all systems understand
  443. # e.g. LANG=C (notably SCO).
  444. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  445. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  446.  
  447. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  448. rm -rf conftest* confdefs.h
  449. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  450. echo > confdefs.h
  451.  
  452. # A filename unique to this package, relative to the directory that
  453. # configure is in, which we can look for to find out if srcdir is correct.
  454. ac_unique_file=z8k-dis.c
  455.  
  456. # Find the source files, if location was not specified.
  457. if test -z "$srcdir"; then
  458.   ac_srcdir_defaulted=yes
  459.   # Try the directory containing this script, then its parent.
  460.   ac_prog=$0
  461.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  462.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  463.   srcdir=$ac_confdir
  464.   if test ! -r $srcdir/$ac_unique_file; then
  465.     srcdir=..
  466.   fi
  467. else
  468.   ac_srcdir_defaulted=no
  469. fi
  470. if test ! -r $srcdir/$ac_unique_file; then
  471.   if test "$ac_srcdir_defaulted" = yes; then
  472.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  473.   else
  474.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  475.   fi
  476. fi
  477. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  478.  
  479. # Prefer explicitly selected file to automatically selected ones.
  480. if test -z "$CONFIG_SITE"; then
  481.   if test "x$prefix" != xNONE; then
  482.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  483.   else
  484.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  485.   fi
  486. fi
  487. for ac_site_file in $CONFIG_SITE; do
  488.   if test -r "$ac_site_file"; then
  489.     echo "loading site script $ac_site_file"
  490.     . "$ac_site_file"
  491.   fi
  492. done
  493.  
  494. if test -r "$cache_file"; then
  495.   echo "loading cache $cache_file"
  496.   . $cache_file
  497. else
  498.   echo "creating cache $cache_file"
  499.   > $cache_file
  500. fi
  501.  
  502. ac_ext=c
  503. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  504. ac_cpp='$CPP $CPPFLAGS'
  505. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  506. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  507.  
  508. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  509.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  510.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  511.     ac_n= ac_c='
  512. ' ac_t='    '
  513.   else
  514.     ac_n=-n ac_c= ac_t=
  515.   fi
  516. else
  517.   ac_n= ac_c='\c' ac_t=
  518. fi
  519.  
  520.  
  521. #    configure.in script for the opcodes library.
  522. #    Copyright (C) 1995, 1996 Free Software Foundation, Inc.
  523. #    Written by Cygnus Support.
  524. # This program is free software; you can redistribute it and/or modify
  525. # it under the terms of the GNU General Public License as published by
  526. # the Free Software Foundation; either version 2 of the License, or
  527. # (at your option) any later version.
  528. # This program is distributed in the hope that it will be useful,
  529. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  530. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  531. # GNU General Public License for more details.
  532. # You should have received a copy of the GNU General Public License
  533. # along with this program; if not, write to the Free Software
  534. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  535.  
  536. # Check whether --enable-targets or --disable-targets was given.
  537. if test "${enable_targets+set}" = set; then
  538.   enableval="$enable_targets"
  539.   case "${enableval}" in
  540.   yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
  541.             ;;
  542.   no)       enable_targets= ;;
  543.   *)        enable_targets=$enableval ;;
  544. esac
  545. fi
  546. # Check whether --enable-shared or --disable-shared was given.
  547. if test "${enable_shared+set}" = set; then
  548.   enableval="$enable_shared"
  549.   case "${enableval}" in
  550.   yes) shared=true ;;
  551.   no)  shared=false ;;
  552.   *opcodes*) shared=true ;;
  553.   *) shared=false ;;
  554. esac
  555. fi
  556. # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
  557. if test "${enable_commonbfdlib+set}" = set; then
  558.   enableval="$enable_commonbfdlib"
  559.   case "${enableval}" in
  560.   yes) commonbfdlib=true ;;
  561.   no)  commonbfdlib=false ;;
  562.   *)   { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
  563. esac
  564. fi
  565.  
  566.  
  567.  
  568. ac_aux_dir=
  569. for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
  570.   if test -f $ac_dir/install-sh; then
  571.     ac_aux_dir=$ac_dir
  572.     ac_install_sh="$ac_aux_dir/install-sh -c"
  573.     break
  574.   elif test -f $ac_dir/install.sh; then
  575.     ac_aux_dir=$ac_dir
  576.     ac_install_sh="$ac_aux_dir/install.sh -c"
  577.     break
  578.   fi
  579. done
  580. if test -z "$ac_aux_dir"; then
  581.   { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
  582. fi
  583. ac_config_guess=$ac_aux_dir/config.guess
  584. ac_config_sub=$ac_aux_dir/config.sub
  585. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  586.  
  587.  
  588. # Do some error checking and defaulting for the host and target type.
  589. # The inputs are:
  590. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  591. #
  592. # The rules are:
  593. # 1. You are not allowed to specify --host, --target, and nonopt at the
  594. #    same time.
  595. # 2. Host defaults to nonopt.
  596. # 3. If nonopt is not specified, then host defaults to the current host,
  597. #    as determined by config.guess.
  598. # 4. Target and build default to nonopt.
  599. # 5. If nonopt is not specified, then target and build default to host.
  600.  
  601. # The aliases save the names the user supplied, while $host etc.
  602. # will get canonicalized.
  603. case $host---$target---$nonopt in
  604. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  605. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  606. esac
  607.  
  608.  
  609. # Make sure we can run config.sub.
  610. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  611. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  612. fi
  613.  
  614. echo $ac_n "checking host system type""... $ac_c" 1>&6
  615.  
  616. host_alias=$host
  617. case "$host_alias" in
  618. NONE)
  619.   case $nonopt in
  620.   NONE)
  621.     if host_alias=`$ac_config_guess`; then :
  622.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  623.     fi ;;
  624.   *) host_alias=$nonopt ;;
  625.   esac ;;
  626. esac
  627.  
  628. host=`$ac_config_sub $host_alias`
  629. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  630. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  631. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  632. echo "$ac_t""$host" 1>&6
  633.  
  634. echo $ac_n "checking target system type""... $ac_c" 1>&6
  635.  
  636. target_alias=$target
  637. case "$target_alias" in
  638. NONE)
  639.   case $nonopt in
  640.   NONE) target_alias=$host_alias ;;
  641.   *) target_alias=$nonopt ;;
  642.   esac ;;
  643. esac
  644.  
  645. target=`$ac_config_sub $target_alias`
  646. target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  647. target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  648. target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  649. echo "$ac_t""$target" 1>&6
  650.  
  651. echo $ac_n "checking build system type""... $ac_c" 1>&6
  652.  
  653. build_alias=$build
  654. case "$build_alias" in
  655. NONE)
  656.   case $nonopt in
  657.   NONE) build_alias=$host_alias ;;
  658.   *) build_alias=$nonopt ;;
  659.   esac ;;
  660. esac
  661.  
  662. build=`$ac_config_sub $build_alias`
  663. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  664. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  665. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  666. echo "$ac_t""$build" 1>&6
  667.  
  668. test "$host_alias" != "$target_alias" &&
  669.   test "$program_prefix$program_suffix$program_transform_name" = \
  670.     NONENONEs,x,x, &&
  671.   program_prefix=${target_alias}-
  672.  
  673. if test -z "$target" ; then
  674.     { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
  675. fi
  676. if test "$program_transform_name" = s,x,x,; then
  677.   program_transform_name=
  678. else
  679.   # Double any \ or $.  echo might interpret backslashes.
  680.   cat <<\EOF_SED > conftestsed
  681. s,\\,\\\\,g; s,\$,$$,g
  682. EOF_SED
  683.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  684.   rm -f conftestsed
  685. fi
  686. test "$program_prefix" != NONE &&
  687.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  688. # Use a double $ so make ignores it.
  689. test "$program_suffix" != NONE &&
  690.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  691.  
  692. # sed with no file args requires a program.
  693. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  694.  
  695.  
  696. # host-specific stuff:
  697.  
  698. ALLLIBS='$(TARGETLIB)'
  699. PICFLAG=
  700. SHLIB=unused-shlib
  701. SHLINK=unused-shlink
  702. if test "${shared}" = "true"; then
  703.   ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)'
  704.   PICFLAG=-fpic
  705.   if test "${commonbfdlib}" = "true"; then
  706.     SHLIB=../bfd/libbfd.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/../bfd/VERSION`
  707.     SHLINK=../bfd/libbfd.so
  708.   else
  709.     SHLIB=libopcodes.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/../bfd/VERSION`
  710.     SHLINK=libopcodes.so
  711.   fi
  712. fi
  713.  
  714. # Extract the first word of "gcc", so it can be a program name with args.
  715. set dummy gcc; ac_word=$2
  716. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  717. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  718.   echo $ac_n "(cached) $ac_c" 1>&6
  719. else
  720.   if test -n "$CC"; then
  721.   ac_cv_prog_CC="$CC" # Let the user override the test.
  722. else
  723.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  724.   for ac_dir in $PATH; do
  725.     test -z "$ac_dir" && ac_dir=.
  726.     if test -f $ac_dir/$ac_word; then
  727.       ac_cv_prog_CC="gcc"
  728.       break
  729.     fi
  730.   done
  731.   IFS="$ac_save_ifs"
  732. fi
  733. fi
  734. CC="$ac_cv_prog_CC"
  735. if test -n "$CC"; then
  736.   echo "$ac_t""$CC" 1>&6
  737. else
  738.   echo "$ac_t""no" 1>&6
  739. fi
  740.  
  741. if test -z "$CC"; then
  742.   # Extract the first word of "cc", so it can be a program name with args.
  743. set dummy cc; ac_word=$2
  744. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  745. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  746.   echo $ac_n "(cached) $ac_c" 1>&6
  747. else
  748.   if test -n "$CC"; then
  749.   ac_cv_prog_CC="$CC" # Let the user override the test.
  750. else
  751.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  752.   ac_prog_rejected=no
  753.   for ac_dir in $PATH; do
  754.     test -z "$ac_dir" && ac_dir=.
  755.     if test -f $ac_dir/$ac_word; then
  756.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  757.         ac_prog_rejected=yes
  758.     continue
  759.       fi
  760.       ac_cv_prog_CC="cc"
  761.       break
  762.     fi
  763.   done
  764.   IFS="$ac_save_ifs"
  765. if test $ac_prog_rejected = yes; then
  766.   # We found a bogon in the path, so make sure we never use it.
  767.   set dummy $ac_cv_prog_CC
  768.   shift
  769.   if test $# -gt 0; then
  770.     # We chose a different compiler from the bogus one.
  771.     # However, it has the same basename, so the bogon will be chosen
  772.     # first if we set CC to just the basename; use the full file name.
  773.     shift
  774.     set dummy "$ac_dir/$ac_word" "$@"
  775.     shift
  776.     ac_cv_prog_CC="$@"
  777.   fi
  778. fi
  779. fi
  780. fi
  781. CC="$ac_cv_prog_CC"
  782. if test -n "$CC"; then
  783.   echo "$ac_t""$CC" 1>&6
  784. else
  785.   echo "$ac_t""no" 1>&6
  786. fi
  787.  
  788.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  789. fi
  790.  
  791. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  792. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  793.   echo $ac_n "(cached) $ac_c" 1>&6
  794. else
  795.   cat > conftest.c <<EOF
  796. #ifdef __GNUC__
  797.   yes;
  798. #endif
  799. EOF
  800. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  801.   ac_cv_prog_gcc=yes
  802. else
  803.   ac_cv_prog_gcc=no
  804. fi
  805. fi
  806.  
  807. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  808. if test $ac_cv_prog_gcc = yes; then
  809.   GCC=yes
  810.   if test "${CFLAGS+set}" != set; then
  811.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  812. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  813.   echo $ac_n "(cached) $ac_c" 1>&6
  814. else
  815.   echo 'void f(){}' > conftest.c
  816. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  817.   ac_cv_prog_gcc_g=yes
  818. else
  819.   ac_cv_prog_gcc_g=no
  820. fi
  821. rm -f conftest*
  822.  
  823. fi
  824.  
  825. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  826.     if test $ac_cv_prog_gcc_g = yes; then
  827.       CFLAGS="-g -O"
  828.     else
  829.       CFLAGS="-O"
  830.     fi
  831.   fi
  832. else
  833.   GCC=
  834.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  835. fi
  836.  
  837.  
  838. . ${srcdir}/../bfd/configure.host
  839.  
  840.  
  841. if test $host != $build; then
  842.   ac_tool_prefix=${host_alias}-
  843. else
  844.   ac_tool_prefix=
  845. fi
  846.  
  847. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  848. set dummy ${ac_tool_prefix}ar; ac_word=$2
  849. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  850. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  851.   echo $ac_n "(cached) $ac_c" 1>&6
  852. else
  853.   if test -n "$AR"; then
  854.   ac_cv_prog_AR="$AR" # Let the user override the test.
  855. else
  856.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  857.   for ac_dir in $PATH; do
  858.     test -z "$ac_dir" && ac_dir=.
  859.     if test -f $ac_dir/$ac_word; then
  860.       ac_cv_prog_AR="${ac_tool_prefix}ar"
  861.       break
  862.     fi
  863.   done
  864.   IFS="$ac_save_ifs"
  865.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  866. fi
  867. fi
  868. AR="$ac_cv_prog_AR"
  869. if test -n "$AR"; then
  870.   echo "$ac_t""$AR" 1>&6
  871. else
  872.   echo "$ac_t""no" 1>&6
  873. fi
  874.  
  875.  
  876.  
  877. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  878. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  879. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  880. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  881.   echo $ac_n "(cached) $ac_c" 1>&6
  882. else
  883.   if test -n "$RANLIB"; then
  884.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  885. else
  886.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  887.   for ac_dir in $PATH; do
  888.     test -z "$ac_dir" && ac_dir=.
  889.     if test -f $ac_dir/$ac_word; then
  890.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  891.       break
  892.     fi
  893.   done
  894.   IFS="$ac_save_ifs"
  895. fi
  896. fi
  897. RANLIB="$ac_cv_prog_RANLIB"
  898. if test -n "$RANLIB"; then
  899.   echo "$ac_t""$RANLIB" 1>&6
  900. else
  901.   echo "$ac_t""no" 1>&6
  902. fi
  903.  
  904.  
  905. if test -z "$ac_cv_prog_RANLIB"; then
  906. if test -n "$ac_tool_prefix"; then
  907.   # Extract the first word of "ranlib", so it can be a program name with args.
  908. set dummy ranlib; ac_word=$2
  909. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  910. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  911.   echo $ac_n "(cached) $ac_c" 1>&6
  912. else
  913.   if test -n "$RANLIB"; then
  914.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  915. else
  916.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  917.   for ac_dir in $PATH; do
  918.     test -z "$ac_dir" && ac_dir=.
  919.     if test -f $ac_dir/$ac_word; then
  920.       ac_cv_prog_RANLIB="ranlib"
  921.       break
  922.     fi
  923.   done
  924.   IFS="$ac_save_ifs"
  925.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  926. fi
  927. fi
  928. RANLIB="$ac_cv_prog_RANLIB"
  929. if test -n "$RANLIB"; then
  930.   echo "$ac_t""$RANLIB" 1>&6
  931. else
  932.   echo "$ac_t""no" 1>&6
  933. fi
  934.  
  935. else
  936.   RANLIB=":"
  937. fi
  938. fi
  939.  
  940. # Find a good install program.  We prefer a C program (faster),
  941. # so one script is as good as another.  But avoid the broken or
  942. # incompatible versions:
  943. # SysV /etc/install, /usr/sbin/install
  944. # SunOS /usr/etc/install
  945. # IRIX /sbin/install
  946. # AIX /bin/install
  947. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  948. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  949. # ./install, which can be erroneously created by make from ./install.sh.
  950. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  951. if test -z "$INSTALL"; then
  952. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  953.   echo $ac_n "(cached) $ac_c" 1>&6
  954. else
  955.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  956.   for ac_dir in $PATH; do
  957.     # Account for people who put trailing slashes in PATH elements.
  958.     case "$ac_dir/" in
  959.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  960.     *)
  961.       # OSF1 and SCO ODT 3.0 have their own names for install.
  962.       for ac_prog in ginstall installbsd scoinst install; do
  963.         if test -f $ac_dir/$ac_prog; then
  964.       if test $ac_prog = install &&
  965.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  966.         # AIX install.  It has an incompatible calling convention.
  967.         # OSF/1 installbsd also uses dspmsg, but is usable.
  968.         :
  969.       else
  970.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  971.         break 2
  972.       fi
  973.     fi
  974.       done
  975.       ;;
  976.     esac
  977.   done
  978.   IFS="$ac_save_ifs"
  979.  
  980. fi
  981.   if test "${ac_cv_path_install+set}" = set; then
  982.     INSTALL="$ac_cv_path_install"
  983.   else
  984.     # As a last resort, use the slow shell script.  We don't cache a
  985.     # path for INSTALL within a source directory, because that will
  986.     # break other packages using the cache if that directory is
  987.     # removed, or if the path is relative.
  988.     INSTALL="$ac_install_sh"
  989.   fi
  990. fi
  991. echo "$ac_t""$INSTALL" 1>&6
  992.  
  993. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  994. # It thinks the first close brace ends the variable substitution.
  995. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  996.  
  997. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  998.  
  999.  
  1000. if test "${shared}" = "true"; then
  1001.   if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then
  1002.     echo "configure: warning: opcodes --enable-shared only supported when using gcc" 1>&2
  1003.     shared=false
  1004.     ALLLIBS='$(TARGETLIB)'
  1005.     PICFLAG=
  1006.     SHLIB=unused-shlib
  1007.   fi
  1008. fi
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015. if test "${commonbfdlib}" = "true"; then
  1016.   COMMON_SHLIB=yes
  1017.   # Rebuild the shared library if libiberty or libbfd changes.
  1018.   SHLIB_DEP="../libiberty/libiberty.a ../bfd/libbfd.a"
  1019.   BFD_PICLIST=../bfd/piclist
  1020. else
  1021.   COMMON_SHLIB=
  1022.   SHLIB_DEP=
  1023.   BFD_PICLIST=
  1024. fi
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1031. # On Suns, sometimes $CPP names a directory.
  1032. if test -n "$CPP" && test -d "$CPP"; then
  1033.   CPP=
  1034. fi
  1035. if test -z "$CPP"; then
  1036. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1037.   echo $ac_n "(cached) $ac_c" 1>&6
  1038. else
  1039.     # This must be in double quotes, not single quotes, because CPP may get
  1040.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1041.   CPP="${CC-cc} -E"
  1042.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1043.   # not just through cpp.
  1044.   cat > conftest.$ac_ext <<EOF
  1045. #line 1049 "configure"
  1046. #include "confdefs.h"
  1047. #include <assert.h>
  1048. Syntax Error
  1049. EOF
  1050. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1051. { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1052. ac_err=`grep -v '^ *+' conftest.out`
  1053. if test -z "$ac_err"; then
  1054.   :
  1055. else
  1056.   echo "$ac_err" >&5
  1057.   rm -rf conftest*
  1058.   CPP="${CC-cc} -E -traditional-cpp"
  1059.   cat > conftest.$ac_ext <<EOF
  1060. #line 1064 "configure"
  1061. #include "confdefs.h"
  1062. #include <assert.h>
  1063. Syntax Error
  1064. EOF
  1065. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1066. { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1067. ac_err=`grep -v '^ *+' conftest.out`
  1068. if test -z "$ac_err"; then
  1069.   :
  1070. else
  1071.   echo "$ac_err" >&5
  1072.   rm -rf conftest*
  1073.   CPP=/lib/cpp
  1074. fi
  1075. rm -f conftest*
  1076. fi
  1077. rm -f conftest*
  1078.   ac_cv_prog_CPP="$CPP"
  1079. fi
  1080.   CPP="$ac_cv_prog_CPP"
  1081. else
  1082.   ac_cv_prog_CPP="$CPP"
  1083. fi
  1084. echo "$ac_t""$CPP" 1>&6
  1085.  
  1086. for ac_hdr in string.h strings.h
  1087. do
  1088. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1089. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1090. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1091.   echo $ac_n "(cached) $ac_c" 1>&6
  1092. else
  1093.   cat > conftest.$ac_ext <<EOF
  1094. #line 1098 "configure"
  1095. #include "confdefs.h"
  1096. #include <$ac_hdr>
  1097. EOF
  1098. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1099. { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1100. ac_err=`grep -v '^ *+' conftest.out`
  1101. if test -z "$ac_err"; then
  1102.   rm -rf conftest*
  1103.   eval "ac_cv_header_$ac_safe=yes"
  1104. else
  1105.   echo "$ac_err" >&5
  1106.   rm -rf conftest*
  1107.   eval "ac_cv_header_$ac_safe=no"
  1108. fi
  1109. rm -f conftest*
  1110. fi
  1111. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1112.   echo "$ac_t""yes" 1>&6
  1113.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1114.   cat >> confdefs.h <<EOF
  1115. #define $ac_tr_hdr 1
  1116. EOF
  1117.  
  1118. else
  1119.   echo "$ac_t""no" 1>&6
  1120. fi
  1121. done
  1122.  
  1123.  
  1124. # target-specific stuff:
  1125.  
  1126. # Canonicalize the secondary target names.
  1127. if test -n "$enable_targets" ; then
  1128.     for targ in `echo $enable_targets | sed 's/,/ /g'`
  1129.     do
  1130.     result=`$ac_config_sub $targ 2>/dev/null`
  1131.     if test -n "$result" ; then
  1132.         canon_targets="$canon_targets $result"
  1133.     else
  1134.         # Allow targets that config.sub doesn't recognize, like "all".
  1135.         canon_targets="$canon_targets $targ"
  1136.     fi
  1137.     done
  1138. fi
  1139.  
  1140. all_targets=false
  1141. selarchs=
  1142. for targ in $target $canon_targets
  1143. do
  1144.     if test "x$targ" = "xall" ; then
  1145.         all_targets=true
  1146.     else
  1147.     . $srcdir/../bfd/config.bfd
  1148.     selarchs="$selarchs $targ_archs"
  1149.     fi
  1150. done    
  1151.  
  1152. # We don't do any links based on the target system, just makefile config.
  1153.  
  1154. if test x${all_targets} = xfalse ; then
  1155.  
  1156.     # Target architecture .o files.
  1157.     ta=
  1158.  
  1159.     for arch in $selarchs
  1160.     do
  1161.     ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
  1162.     archdefs="$archdefs -DARCH_$ad"
  1163.     case "$arch" in
  1164.     bfd_a29k_arch)        ta="$ta a29k-dis.o" ;;
  1165.     bfd_alliant_arch)    ;;
  1166.     bfd_alpha_arch)        ta="$ta alpha-dis.o alpha-opc.o" ;;
  1167.     bfd_arm_arch)        ta="$ta arm-dis.o" ;;
  1168.     bfd_convex_arch)    ;;
  1169.     bfd_h8300_arch)        ta="$ta h8300-dis.o" ;;
  1170.     bfd_h8500_arch)        ta="$ta h8500-dis.o" ;;
  1171.     bfd_hppa_arch)        ta="$ta hppa-dis.o" ;;
  1172.     bfd_i386_arch)        ta="$ta i386-dis.o" ;;
  1173.     bfd_i860_arch)        ;;
  1174.     bfd_i960_arch)        ta="$ta i960-dis.o" ;;
  1175.     bfd_m68k_arch)        ta="$ta m68k-dis.o m68k-opc.o" ;;
  1176.     bfd_m88k_arch)        ta="$ta m88k-dis.o" ;;
  1177.     bfd_mips_arch)        ta="$ta mips-dis.o mips-opc.o" ;;
  1178.     bfd_ns32k_arch)        ta="$ta ns32k-dis.o" ;;
  1179.     bfd_powerpc_arch)    ta="$ta ppc-dis.o ppc-opc.o" ;;
  1180.     bfd_pyramid_arch)    ;;
  1181.     bfd_romp_arch)        ;;
  1182.     bfd_rs6000_arch)    ta="$ta ppc-dis.o ppc-opc.o" ;;
  1183.     bfd_sh_arch)        ta="$ta sh-dis.o" ;;
  1184.     bfd_sparc_arch)        ta="$ta sparc-dis.o sparc-opc.o" ;;
  1185.     bfd_tahoe_arch)        ;;
  1186.     bfd_vax_arch)        ;;
  1187.     bfd_w65_arch)        ta="$ta w65-dis.o" ;;
  1188.     bfd_we32k_arch)        ;;
  1189.     bfd_z8k_arch)        ta="$ta z8k-dis.o" ;;
  1190.  
  1191.     "")            ;;
  1192.     *)        { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
  1193.     esac
  1194.     done
  1195.  
  1196.     # Weed out duplicate .o files.
  1197.     f=""
  1198.     for i in $ta ; do
  1199.     case " $f " in
  1200.     *" $i "*) ;;
  1201.     *) f="$f $i" ;;
  1202.     esac
  1203.     done
  1204.     ta="$f"
  1205.  
  1206.     # And duplicate -D flags.
  1207.     f=""
  1208.     for i in $archdefs ; do
  1209.     case " $f " in
  1210.     *" $i "*) ;;
  1211.     *) f="$f $i" ;;
  1212.     esac
  1213.     done
  1214.     archdefs="$f"
  1215.  
  1216.     BFD_MACHINES="$ta"
  1217.  
  1218. else    # all_targets is true
  1219.     archdefs=-DARCH_all
  1220.     BFD_MACHINES='$(ALL_MACHINES)'
  1221. fi
  1222.  
  1223.  
  1224.  
  1225.  
  1226. trap '' 1 2 15
  1227. cat > confcache <<\EOF
  1228. # This file is a shell script that caches the results of configure
  1229. # tests run on this system so they can be shared between configure
  1230. # scripts and configure runs.  It is not useful on other systems.
  1231. # If it contains results you don't want to keep, you may remove or edit it.
  1232. #
  1233. # By default, configure uses ./config.cache as the cache file,
  1234. # creating it if it does not exist already.  You can give configure
  1235. # the --cache-file=FILE option to use a different cache file; that is
  1236. # what configure does when it calls configure scripts in
  1237. # subdirectories, so they share the cache.
  1238. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1239. # config.status only pays attention to the cache file if you give it the
  1240. # --recheck option to rerun configure.
  1241. #
  1242. EOF
  1243. # Ultrix sh set writes to stderr and can't be redirected directly,
  1244. # and sets the high bit in the cache file unless we assign to the vars.
  1245. (set) 2>&1 |
  1246.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1247.   >> confcache
  1248. if cmp -s $cache_file confcache; then
  1249.   :
  1250. else
  1251.   if test -w $cache_file; then
  1252.     echo "updating cache $cache_file"
  1253.     cat confcache > $cache_file
  1254.   else
  1255.     echo "not updating unwritable cache $cache_file"
  1256.   fi
  1257. fi
  1258. rm -f confcache
  1259.  
  1260. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1261.  
  1262. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1263. # Let make expand exec_prefix.
  1264. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1265.  
  1266. # Any assignment to VPATH causes Sun make to only execute
  1267. # the first set of double-colon rules, so remove it if not needed.
  1268. # If there is a colon in the path, we need to keep it.
  1269. if test "x$srcdir" = x.; then
  1270.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1271. fi
  1272.  
  1273. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1274.  
  1275. DEFS=-DHAVE_CONFIG_H
  1276.  
  1277. # Without the "./", some shells look in PATH for config.status.
  1278. : ${CONFIG_STATUS=./config.status}
  1279.  
  1280. echo creating $CONFIG_STATUS
  1281. rm -f $CONFIG_STATUS
  1282. cat > $CONFIG_STATUS <<EOF
  1283. #! /bin/sh
  1284. # Generated automatically by configure.
  1285. # Run this file to recreate the current configuration.
  1286. # This directory was configured as follows,
  1287. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1288. #
  1289. # $0 $ac_configure_args
  1290. #
  1291. # Compiler output produced by configure, useful for debugging
  1292. # configure, is in ./config.log if it exists.
  1293.  
  1294. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1295. for ac_option
  1296. do
  1297.   case "\$ac_option" in
  1298.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1299.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1300.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1301.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1302.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1303.     exit 0 ;;
  1304.   -help | --help | --hel | --he | --h)
  1305.     echo "\$ac_cs_usage"; exit 0 ;;
  1306.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1307.   esac
  1308. done
  1309.  
  1310. ac_given_srcdir=$srcdir
  1311. ac_given_INSTALL="$INSTALL"
  1312.  
  1313. trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1314. EOF
  1315. cat >> $CONFIG_STATUS <<EOF
  1316.  
  1317. # Protect against being on the right side of a sed subst in config.status.
  1318. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1319.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1320. $ac_vpsub
  1321. $extrasub
  1322. s%@CFLAGS@%$CFLAGS%g
  1323. s%@CPPFLAGS@%$CPPFLAGS%g
  1324. s%@CXXFLAGS@%$CXXFLAGS%g
  1325. s%@DEFS@%$DEFS%g
  1326. s%@LDFLAGS@%$LDFLAGS%g
  1327. s%@LIBS@%$LIBS%g
  1328. s%@exec_prefix@%$exec_prefix%g
  1329. s%@prefix@%$prefix%g
  1330. s%@program_transform_name@%$program_transform_name%g
  1331. s%@bindir@%$bindir%g
  1332. s%@sbindir@%$sbindir%g
  1333. s%@libexecdir@%$libexecdir%g
  1334. s%@datadir@%$datadir%g
  1335. s%@sysconfdir@%$sysconfdir%g
  1336. s%@sharedstatedir@%$sharedstatedir%g
  1337. s%@localstatedir@%$localstatedir%g
  1338. s%@libdir@%$libdir%g
  1339. s%@includedir@%$includedir%g
  1340. s%@oldincludedir@%$oldincludedir%g
  1341. s%@infodir@%$infodir%g
  1342. s%@mandir@%$mandir%g
  1343. s%@host@%$host%g
  1344. s%@host_alias@%$host_alias%g
  1345. s%@host_cpu@%$host_cpu%g
  1346. s%@host_vendor@%$host_vendor%g
  1347. s%@host_os@%$host_os%g
  1348. s%@target@%$target%g
  1349. s%@target_alias@%$target_alias%g
  1350. s%@target_cpu@%$target_cpu%g
  1351. s%@target_vendor@%$target_vendor%g
  1352. s%@target_os@%$target_os%g
  1353. s%@build@%$build%g
  1354. s%@build_alias@%$build_alias%g
  1355. s%@build_cpu@%$build_cpu%g
  1356. s%@build_vendor@%$build_vendor%g
  1357. s%@build_os@%$build_os%g
  1358. s%@CC@%$CC%g
  1359. s%@HDEFINES@%$HDEFINES%g
  1360. s%@AR@%$AR%g
  1361. s%@RANLIB@%$RANLIB%g
  1362. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1363. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1364. s%@ALLLIBS@%$ALLLIBS%g
  1365. s%@PICFLAG@%$PICFLAG%g
  1366. s%@SHLIB@%$SHLIB%g
  1367. s%@SHLIB_CC@%$SHLIB_CC%g
  1368. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  1369. s%@COMMON_SHLIB@%$COMMON_SHLIB%g
  1370. s%@SHLIB_DEP@%$SHLIB_DEP%g
  1371. s%@BFD_PICLIST@%$BFD_PICLIST%g
  1372. s%@SHLINK@%$SHLINK%g
  1373. s%@CPP@%$CPP%g
  1374. s%@archdefs@%$archdefs%g
  1375. s%@BFD_MACHINES@%$BFD_MACHINES%g
  1376.  
  1377. CEOF
  1378. EOF
  1379. cat >> $CONFIG_STATUS <<EOF
  1380.  
  1381. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1382. EOF
  1383. cat >> $CONFIG_STATUS <<\EOF
  1384. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1385.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1386.   case "$ac_file" in
  1387.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1388.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1389.   *) ac_file_in="${ac_file}.in" ;;
  1390.   esac
  1391.  
  1392.   # Adjust relative srcdir, etc. for subdirectories.
  1393.  
  1394.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1395.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1396.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1397.     # The file is in a subdirectory.
  1398.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1399.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1400.     # A "../" for each directory in $ac_dir_suffix.
  1401.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1402.   else
  1403.     ac_dir_suffix= ac_dots=
  1404.   fi
  1405.  
  1406.   case "$ac_given_srcdir" in
  1407.   .)  srcdir=.
  1408.       if test -z "$ac_dots"; then top_srcdir=.
  1409.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1410.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1411.   *) # Relative path.
  1412.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1413.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1414.   esac
  1415.  
  1416.   case "$ac_given_INSTALL" in
  1417.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1418.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1419.   esac
  1420.   echo creating "$ac_file"
  1421.   rm -f "$ac_file"
  1422.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1423.   case "$ac_file" in
  1424.   *Makefile*) ac_comsub="1i\\
  1425. # $configure_input" ;;
  1426.   *) ac_comsub= ;;
  1427.   esac
  1428.   sed -e "$ac_comsub
  1429. s%@configure_input@%$configure_input%g
  1430. s%@srcdir@%$srcdir%g
  1431. s%@top_srcdir@%$top_srcdir%g
  1432. s%@INSTALL@%$INSTALL%g
  1433. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1434. fi; done
  1435. rm -f conftest.subs
  1436.  
  1437. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1438. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1439. #
  1440. # ac_d sets the value in "#define NAME VALUE" lines.
  1441. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1442. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1443. ac_dC='\3'
  1444. ac_dD='%g'
  1445. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1446. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1447. ac_uB='\([     ]\)%\1#\2define\3'
  1448. ac_uC=' '
  1449. ac_uD='\4%g'
  1450. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1451. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1452. ac_eB='$%\1#\2define\3'
  1453. ac_eC=' '
  1454. ac_eD='%g'
  1455.  
  1456. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
  1457. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1458.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1459.   case "$ac_file" in
  1460.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1461.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1462.   *) ac_file_in="${ac_file}.in" ;;
  1463.   esac
  1464.  
  1465.   echo creating $ac_file
  1466.  
  1467.   rm -f conftest.frag conftest.in conftest.out
  1468.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1469.  
  1470. EOF
  1471.  
  1472. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1473. # the proper values into config.h.in to produce config.h.  And first:
  1474. # Protect against being on the right side of a sed subst in config.status.
  1475. # Protect against being in an unquoted here document in config.status.
  1476. rm -f conftest.vals
  1477. cat > conftest.hdr <<\EOF
  1478. s/[\\&%]/\\&/g
  1479. s%[\\$`]%\\&%g
  1480. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1481. s%ac_d%ac_u%gp
  1482. s%ac_u%ac_e%gp
  1483. EOF
  1484. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1485. rm -f conftest.hdr
  1486.  
  1487. # This sed command replaces #undef with comments.  This is necessary, for
  1488. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1489. # on some systems where configure will not decide to define it.
  1490. cat >> conftest.vals <<\EOF
  1491. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1492. EOF
  1493.  
  1494. # Break up conftest.vals because some shells have a limit on
  1495. # the size of here documents, and old seds have small limits too.
  1496. # Maximum number of lines to put in a single here document.
  1497. ac_max_here_lines=12
  1498.  
  1499. rm -f conftest.tail
  1500. while :
  1501. do
  1502.   ac_lines=`grep -c . conftest.vals`
  1503.   # grep -c gives empty output for an empty file on some AIX systems.
  1504.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1505.   # Write a limited-size here document to conftest.frag.
  1506.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1507.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1508.   echo 'CEOF
  1509.   sed -f conftest.frag conftest.in > conftest.out
  1510.   rm -f conftest.in
  1511.   mv conftest.out conftest.in
  1512. ' >> $CONFIG_STATUS
  1513.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1514.   rm -f conftest.vals
  1515.   mv conftest.tail conftest.vals
  1516. done
  1517. rm -f conftest.vals
  1518.  
  1519. cat >> $CONFIG_STATUS <<\EOF
  1520.   rm -f conftest.frag conftest.h
  1521.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1522.   cat conftest.in >> conftest.h
  1523.   rm -f conftest.in
  1524.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1525.     echo "$ac_file is unchanged"
  1526.     rm -f conftest.h
  1527.   else
  1528.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1529.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1530.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1531.       # The file is in a subdirectory.
  1532.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1533.     fi
  1534.     rm -f $ac_file
  1535.     mv conftest.h $ac_file
  1536.   fi
  1537. fi; done
  1538.  
  1539.  
  1540. case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
  1541. exit 0
  1542. EOF
  1543. chmod +x $CONFIG_STATUS
  1544. rm -fr confdefs* $ac_clean_files
  1545. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1546.  
  1547.